package com.ysy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysy.entity.UserCount;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 用户计数统计表 Mapper 接口
 * </p>
 *
 * @author yangSy
 * @since 2025-04-30
 */
public interface UserCountMapper extends BaseMapper<UserCount> {

    void updateOrInsertFollowCount(@Param("userId") Long userId, @Param("followCount") long followCount);

    void updateOrInsertFansCount(@Param("userId") Long userId, @Param("fansCount") long fansCount);

    void updateOrInsertLikeCount(@Param("userId") Long noteCreatorId,@Param("count") Integer count);


    void updateOrInsertCollectCount(@Param("userId") Long noteCreatorId,@Param("collectCount") Integer count);
}

